#ifndef __DAC_H
#define __DAC_H

/*********************************************************************
 * INCLUDES
 */
#include "stdio.h"
#include <at32f4xx.h>

/* Private define ------------------------------------------------------------*/
/*define button*/
typedef enum
{
    WB_DAC1 = 0,
    WB_DAC2,
} WB_DAC_Type;

#define DAC_NUM  2

#define WB_DAC1_PIN              GPIO_Pins_4           //PA4(DAC_OUT1)
#define WB_DAC1_GPIO             GPIOA
#define WB_DAC1_RCC_CLK          RCC_APB2PERIPH_GPIOA

#define WB_DAC2_PIN              GPIO_Pins_5           //PA5(DAC_OUT2)
#define WB_DAC2_GPIO             GPIOA
#define WB_DAC2_RCC_CLK          RCC_APB2PERIPH_GPIOA  

/* Extern variables ---------------------------------------------------------*/


/* Private functions ---------------------------------------------------------*/
/*Button Operation function*/
extern void WB_DAC_Init(void);
extern void Dac1_Set_Vol(u16 vol);
extern void Dac2_Set_Vol(u16 vol);

#endif /* __DAC_H */





























